import type { RouteItem, WechatLoginQrcodeRequest, WechatLoginQrcodeResult } from '@/api/model/permissionModel';
import { request, requestOther } from '@/utils/request';

const Api = {
  MenuList:'/rscms/menu/list',
  WxLoginOrcode: 'https://wx.rscode.cn/oauth/login/qrcode',
};

export function getWxLoginQrcode(params: WechatLoginQrcodeRequest) {
  return requestOther.post<WechatLoginQrcodeResult>({
    url: Api.WxLoginOrcode,
    data: params,
  });
}

export function getMenuList() {
  return request.get<Array<RouteItem>>({
    url: Api.MenuList,
  });
}
